package com.fuxin.hanfu.mapper;

import com.fuxin.hanfu.domain.Knowledge;
import com.fuxin.hanfu.domain.KnowledgeExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface KnowledgeMapper {
//    查询
    List<Knowledge> findList(Knowledge knowledge);

//    根据id查询
    Knowledge findById(Integer id);
//修改
    Integer update(Knowledge knowledge);
//    删除
    Integer delete(Integer id);
    long countByExample(KnowledgeExample example);

    int deleteByExample(KnowledgeExample example);

    int deleteByPrimaryKey(Integer id);

    Integer insert(Knowledge knowledge);

    int insertSelective(Knowledge record);

    List<Knowledge> selectByExample(Knowledge example);

    Knowledge selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") Knowledge record, @Param("example") KnowledgeExample example);

    int updateByExample(@Param("record") Knowledge record, @Param("example") KnowledgeExample example);

    int updateByPrimaryKeySelective(Knowledge record);

    int updateByPrimaryKey(Knowledge record);


}